// 菜单配置
// headerMenuConfig：头部导航配置
// asideMenuConfig：侧边导航配置

const headerMenuConfig = [
  {
    name: '首页',
    path: '/dashboard',
    external: true,
    newWindow: true,
    icon: 'home',
  }
];

const asideMenuConfig = [
  {
    name: '首页',
    path: '/dashboard',
    icon: 'home2',
    children: [
      {
        name: '数据展示',
        path: '/dashboard/home',
      },
    ],
  },
  {
    name: '个人信息',
    path: '/dashboard/myinfo',
    icon: 'yonghu',
    children: [
      {
        name: '账号信息',
        path: '/dashboard/myinfo/account',
      },
      {
        name: '修改密码',
        path: '/dashboard/myinfo/changepassword',
      },
    ],
  },
  {
    name: '广告管理',
    path: '/dashboard/adlist',
    icon: 'publish',
    children: [
      {
        name: '广告列表',
        path: '/dashboard/adlist',
      },
      {
        name: '添加广告',
        path: '/dashboard/addad',
      },
    ],
  },
  {
    name: '商品管理',
    path: '/dashboard/goods',
    icon: 'chart1',
    children: [
      {
        name: '商品列表',
        path: '/dashboard/goods',
      },
      {
        name: '添加商品',
        path: '/dashboard/addgood'
      },
      {
        name: '查看商品评论管理',
        path: '/dashboard/seegoodcomment',
      },
    ],
  },
  {
    name: '订单管理',
    path: '/dashboard/orderlist',
    icon: 'result',
    children: [
      {
        name: '订单列表',
        path: '/dashboard/orderlist',
      },
      {
        name: '添加订单',
        path: '/dashboard/addorder',
      },
    ],
  },
  {
    name: '用户管理',
    path: '/dashboard/userpower',
    icon: 'table',
    children: [
      {
        name: '用户权限管理',
        path: '/dashboard/userpower',
      },
    ],
  },
];

export { headerMenuConfig, asideMenuConfig };
